class Iceshroom extends GuaAnimation {
    static new(game) {
        let p = new this(game, animationIceshroom)
        p.setup()
        return p
    }

    setup() {
        // row表示在草地的第几排
        this.row = -1
        this.cooldown = 500
        this.score = 75
        this.ready = false
    }
    remove() {
        this.scene.removeIceshroom(this)
    }

    iced() {
        this.cooldown--
        if (this.cooldown === 0){
            this.ready = true
        }
    }

    update() {
        super.update()
        this.iced()
    }
}